The Syntactically Dangerous All and Plural in Specifications

نویسندگان

  • Daniel M. Berry
  • Erik Kamsties
چکیده

W e're academics. When each of us wishes to augment his income with consulting, his favorite positions are requirements specification (RS) inspector or inspection facilitator. Each of us has developed his own private check list of potential-problem indicators , and, when he inspects an RS, he reports any instances of these indicators to the authors. Often enough, these potential problems prove to be actual ones. Among the items on both of our lists are specific problems involving the correct use of the natural language in which the RS was written , usually English or German for our clients. These issues include incorrect grammar, incorrect word placement, and all kinds of ambiguities. 1,2 Perhaps surprisingly, our lists of grammatical and word-placement problems are similar despite the difference in the natural languages involved. These syntactic problems are symptoms of ambiguities in meaning—a grammatical problem occurs when part of a sentence disagrees with another, and each choice in the disagreement corresponds to a different meaning. (From our common background in compiling, contrary to the usage in linguistics, 3 we use syntactic to classify sentence form issues and semantic to classify sentence meaning issues.) We'll discuss only one such class of problems , apparently not treated in the software engineering literature: the syntactically dangerous all and plural in specifications. The literature has covered other issues, including the dangerously misplaced only (thoroughly discussed by Peter Neumann 4) and the semantically dangerous all (thoroughly discussed by Chris Rupp and Rolf Goetz 5 and by us 6). One of us, Daniel Berry, discovered the issue we address while facilitating an inspection of an RS. We've modified the example to protect the client's identity and trade secrets, but the example is structurally identical to the one that occurred during the inspection. Consider the sentence All the lights in any room have a single on-off switch. How many switches does any room have, one or one per light? Berry noticed that some parts of the RS appeared to assume that all the lights in any given room share a single on-off switch. Other parts of the same RS appeared to assume that each light in any room has its own on-off switch. From Berry's limited domain knowledge, each choice seemed equally

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A case study on the lightweight verification of a multi-threaded task server

We present a case study of verifying the design of a commercial multi-threaded task server (MTTS), developed by the Novabase company, used for massively parallelising computational tasks. In a first stage, we employed the Plural tool, which is designed to perform lightweight verification of Java programs using a Data Flow Analysis (DFA) framework, to specify and verify the MTTS. We wrote the Pl...

متن کامل

Numeral Classifiers , ( In - ) Definites , and Incremental Themes in Korean

Those numeral classifier languages like Korean, Japanese, and Chinese mobilize classifiers together with numerals in naming and counting objects in the world. Classifiers serve to classify objects according to their shape, function and other semantic features often culturally defined. Discrete (or fuzzy) numerals are used to count the number of objects. In Korean and Japanese, plural marking al...

متن کامل

Automated Verification of Specifications with Typestates and Access Permissions

We propose an approach to formally verify Plural specifications based on access permissions and typestates, by model-checking automatically generated abstract state-machines. Our exhaustive approach captures all the possible behaviors of abstract concurrent programs implementing the specification. We describe the formal methodology employed by our technique and provide an example as proof of co...

متن کامل

Iconic Features

Sign languages are known to display the same general grammatical properties as spoken languages ('Universal Grammar'), but also to make greater use of iconic mechanisms. In Schlenker et al., to appear, it was argued that loci (= positions in signing space corresponding to discourse referents) can have an iconic semantics, in the sense that certain geometric relations among loci (subset and rela...

متن کامل

Nonstandard Agreement in Standard English: The Social Perception of Agreement Variation under Existential there

When using existential constructions to introduce plural NPs (e.g., there are dishes in the sink), speakers have the option of using a plural or singular form of the verb. In other words, speakers can use agreeing (plural) or non-agreeing (singular) forms of the verb when the NP is plural. Previous research reveals that non-agreement under existential there is the norm, even in standard varieti...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • IEEE Software

دوره 22  شماره 

صفحات  -

تاریخ انتشار 2005